home *** CD-ROM | disk | FTP | other *** search
- Path: news.uh.edu!usenet
- From: Sensarn <txs53132@bayou.uh.edu>
- Newsgroups: comp.lang.c++
- Subject: Linking LIBs
- Date: 27 Jan 1996 20:45:30 GMT
- Organization: AEtna Insurance Agency
- Message-ID: <4ee2ta$6b3@masala.cc.uh.edu>
- NNTP-Posting-Host: sip-14115.public-dialups.uh.edu
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.1 (Windows; U; 16bit)
-
- I just started linking LIB files to my projects (TC++ 3.0). The
- programs work fine in TC, but I have a problem when they are run from
- DOS. After execution, the memory allocated for the program doesn't seem
- to be freed. Before execution, I have about 600k conventional memory
- left. After execution, I have about 160k (not enough to even run TC
- again). How do I stop this?
-
- Steven Sensarn - txs53132@bayou.uh.edu
-
- P.S.
- The first time I tried it, I stopped the program using exit(1). The
- second time, I merely used a 'for' loop like the following:
-
- unsigned char done=0;
- do
- {
- ..
- } while(!done);
-
- I added a line in the program that looked like this
-
- done=1;
-
- The program worked great in TC, but not DOS.
-
-
-